<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script>
    'use strict';
    function aaa(a,b,...rest){
      console.log("a-> " + a + "b-> " + b);
      console.log(rest);

 /*     // 使用arguments判断
      if(arguments.length>2){
        for(var i = 2;i<arguments.length;i++){
          console.log("多余参数：" + arguments[i]);
        }
      }*/
    }
  </script>
</head>
<body>

</body>
</html>